package com.wwt.springboot_vue.mapper;

import com.wwt.springboot_vue.bean.Category;

import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface CategoryMapper {

    public List<Category> findAllCategory();
    List<Category>  findAllCategoryBylimit(int start,int size);
    Category getCategoryIdByName(String category_name);

    void delete(int category_id);

    void update(Category category);

    void add(Category category);
    int count();
   }
